<HTML> 
<HEAD> 
	<TITLE>3rd Party ROBOTC Drivers</TITLE> 
<link href="tabs.css" rel="stylesheet" type="text/css"/> 
<link href="doxygen.css" rel="stylesheet" type="text/css"/> 
</HEAD> 
 
<BODY bgcolor="#ffffff" link="#000000" vlink="#000000"> 
<table width="100%" bgcolor="navy" cellspacing=0 cellpadding=1 border=0> 
<tr><td><table width="100%" bgcolor="#EEEEDD" cellspacing=0 cellpadding=3 border=0> 
<tr> 
    <td width="33%" align="left"> <img src="images/LOGO_NXT.gif" width=266 height=44 border="0" alt="Mindstorms"></td> 
    <td><b><font size="+3" color="navy">3rd Party ROBOTC Drivers</font></b></td> 
    <td align="right"> <img src="images/logo.png" width=44 height=44 border="0" alt="RobotC"></td>     
</tr> 
  <tr bgcolor="#cccc99" align="right"> 
          <td colspan=3> <font face="arial" size="-1"> [<a href=main.html>Home</a>] [<a target=_top href="https://sourceforge.net/projects/rdpartyrobotcdr/">Download</a>] [<a target=_top href="http://apps.sourceforge.net/mantisbt/rdpartyrobotcdr/my_view_page.php">Submit a bug/suggestion</a>]  [<a target=_top href="http://www.robotc.net/forums/">ROBOTC Forums</a>] [<a target=_top href="http://botbench.com">Blog</a>] [<a target=_top href="http://sourceforge.net/donate/index.php?group_id=257238">Support this project</a>]</font> </td> 
</tr> 
</table></td></tr> 
</table> 
<!-- Generated by Doxygen 1.7.2 -->
<div class="header">
  <div class="summary">
<a href="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<h1>mindsensors-numericpad.h File Reference</h1>  </div>
</div>
<div class="contents">

<p>Mindsensors Numeric Keypad Sensor driver.  
<a href="#_details">More...</a></p>
<code>#include &quot;<a class="el" href="common_8h_source.html">common.h</a>&quot;</code><br/>

<p><a href="mindsensors-numericpad_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_n_p.html#ga6472a8d2f87f7d94c7f7e5a1112294c3">MSNP_I2C_ADDR</a>&#160;&#160;&#160;0xB4</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_n_p.html#gaf9cb9881c29d5169e9c9c653a98da79b">MSNP_DATA_REG</a>&#160;&#160;&#160;0x00</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_n_p.html#ga2ed62e71b3d05ffa351963ebd0a42c34">KEY_STATUS_REG</a>&#160;&#160;&#160;0x00</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_n_p.html#ga84a1752785d3c14b646d4250d1d7975c">_MSNPinit</a> (tSensors link)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_n_p.html#ga570a8c02a43793224da780b820d9d4b9">MSNPscanKeys</a> (tSensors link, int &amp;pressedKeys, unsigned byte &amp;key, int &amp;number)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_n_p.html#ga86966fc99b623339144322c3835d1e7b">MSNPscanKeys</a> (tSensors link)</td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__common.html#gaa172ef131853460e5b9f5c6db81d30f4">tByteArray</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_n_p.html#gad34725814e9951e32255a0fd938731aa">MSNP_I2CRequest</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__common.html#gaa172ef131853460e5b9f5c6db81d30f4">tByteArray</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_n_p.html#ga193e672b81afe32e257e2359d31a2ac1">MSNP_I2CReply</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const unsigned byte&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_n_p.html#ga37e776b5a84409012a54e8fbff3f78fa">MSNP_KeyMap</a> [] = { '#', '9', '6', '3', '0', '8', '2', '5', '*', '7', '1', '4' }</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const signed byte&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_n_p.html#gad67b4c6d110c73d2976f135cb7bd69ad">MSNP_NumMap</a> [] = { -1, 9, 6, 3, 0, 8, 2, 5, -2, 7, 1, 4}</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const unsigned byte&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_n_p.html#gacf5507e6eee1bb61a65ba1a4e1b3ecf1">MSNP_ConfigGroup1</a> [] = {10, MSNP_I2C_ADDR, 0x2B, 0x01, 0x01, 0x00, 0x00, 0x01, 0x01, 0xFF, 0x02}</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const unsigned byte&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_n_p.html#gad31afc697766e603bb4b0b0a517952a3">MSNP_ConfigGroup2</a> [] = {16, MSNP_I2C_ADDR, 0x41, 0x0F, 0x0A, 0x0F, 0x0A, 0x0F, 0x0A, 0x0F, 0x0A, 0x0F, 0x0A, 0x0F, 0x0A, 0x0F, 0x0A}</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const unsigned byte&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_n_p.html#ga2996b9ebe7e38ead69d12e8279953c9c">MSNP_ConfigGroup3</a> [] = {14, MSNP_I2C_ADDR, 0x4F, 0x0F, 0x0A, 0x0F, 0x0A, 0x0F, 0x0A, 0x0F, 0x0A, 0x0F, 0x0A, 0x0F, 0x0A}</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const unsigned byte&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_n_p.html#ga4d7ec0466ee7de80fe4f3ef26df3dcb7">MSNP_ConfigGroup4</a> [] = { 5, MSNP_I2C_ADDR, 0x5C, 0x0B, 0x20, 0x0C}</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const unsigned byte&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_n_p.html#ga7e4262f1f594f011f63dab24fdf0927d">MSNP_ConfigGroup5</a> [] = { 3, MSNP_I2C_ADDR, 0x7B, 0x0B}</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const unsigned byte&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_n_p.html#ga92e4936678304dbb1d5f1a8e7b5ac2b0">MSNP_ConfigGroup6</a> [] = { 5, MSNP_I2C_ADDR, 0x7D, 0x9C, 0x65, 0x8C}</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___m_s_n_p.html#ga5f48314dd362d5eb1047ea3512d2185e">_MSNPinitialised</a> [] = {false, false, false, false}</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Mindsensors Numeric Keypad Sensor driver. </p>
<p><a class="el" href="mindsensors-numericpad_8h.html" title="Mindsensors Numeric Keypad Sensor driver.">mindsensors-numericpad.h</a> provides an API for the Mindsensors Numeric Keypad Sensor.<br/>
</p>
<p>Changelog:</p>
<ul>
<li>0.1: Initial release</li>
</ul>
<p>Credits:</p>
<ul>
<li>Big thanks to Mindsensors for providing me with the hardware necessary to write and test this.</li>
</ul>
<p>License: You may use this code as you wish, provided you give credit where its due.</p>
<p>THIS CODE WILL ONLY WORK WITH ROBOTC VERSION 3.59 AND HIGHER.</p>
<dl class="author"><dt><b>Author:</b></dt><dd>Xander Soldaat (xander_at_botbench.com) </dd></dl>
<dl class="date"><dt><b>Date:</b></dt><dd>30 October 2010 </dd></dl>
<dl class="version"><dt><b>Version:</b></dt><dd>0.1 </dd></dl>

<p>Definition in file <a class="el" href="mindsensors-numericpad_8h_source.html">mindsensors-numericpad.h</a>.</p>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Wed Mar 13 2013 19:56:43 for ROBOTC Drivers by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address>
</body>
</html>
